<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php


class ListBase extends OperateBase
{
    
    public function getList($condition, $params, $limit = 45, $start = 0){
        $info = UserFile::model()->findAll(array(
                 'condition' =>$condition,
                 'params'    =>$params,
                 'order'     =>'file_type desc, created_at desc',
                 'limit'     =>$limit,
                 'offset'    =>$start,
        )
        );
        return $info;
    }


    
    public function count($condition, $params){
        return UserFile::model()->count($condition, $params);
    }
    
    
    
    public function find($condition, $params){
        return UserFile::model()->find($condition, $params);
    }

}
?>